package org.dromara.vehicle.modules.driver.domain.bo;

import cn.hutool.core.date.DatePattern;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.vehicle.modules.driver.domain.DriverTrainingRecord;

import java.util.Date;

/**
 * 驾驶员培训记录业务对象 driver_training_record
 *
 * @author ckk
 * @date 2025-06-24
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = DriverTrainingRecord.class, reverseConvertGenerate = false)
public class DriverTrainingRecordBo extends BaseEntity {

    /**
     * 主键ID
     */
    private Long id;

    /**
     * 关联驾驶员基本信息表ID
     */
    private Long driverId;

    /**
     * 培训日期
     */
    @NotNull(message = "培训日期不能为空", groups = { AddGroup.class, EditGroup.class })
    @JsonFormat(pattern = DatePattern.NORM_DATE_PATTERN)
    private Date trainingDate;

    /**
     * 培训内容
     */
    private String trainingContent;

    /**
     * 培训结果
     */
    private String trainingResult;


}
